package com.dearbinge.data.pojo.orderTable.dto;

import com.dearbinge.data.pojo.commodity.dto.CommodityDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 订单价格校验
 *
 * @author wes
 * @date 2019/2/22
 */
@Api
public class OrderTotalPriceDTO implements Serializable {

    /**
     * 订单总价
     */
    @ApiModelProperty("订单总价")
    private BigDecimal totalPrice;

    /**
     * 商品集合
     */
    @ApiModelProperty("商品集合")
    private List<CommodityDTO> goodsList;


    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public List<CommodityDTO> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<CommodityDTO> goodsList) {
        this.goodsList = goodsList;
    }


    @Override
    public String toString() {
        return "OrderTotalPriceDTO{" +
                "totalPrice=" + totalPrice +
                ", goodsList=" + goodsList +
                '}';
    }
}
